home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
igo
/
src
/
mititle.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-08
|
20KB
|
834 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int dialogId_title ;
extern int messageId_title[24] ;
extern int blacknameId ;
extern int whitenameId ;
extern int numboxId[12] ;
extern int placeId ;
extern int dbId[2] ;
extern int igo_titleset() ;
extern int igo_titlecancel() ;
extern int listMenuId[3] ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataMITITLE = { "MmiInit", 45, 0 } ;
/* dialogId_title */
static MMIPACKET d001 = { &dialogId_title,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
MS_NONE
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SAVEL40,
86, 75, 597, 399, 8, 7, 8,
MS_SRECTL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* messageId_title[0] */
static MMIPACKET d002 = { &messageId_title[0],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d002d = { MS_CENTERL40 | MS_DSPONLYL40,
263, 86, 422, 109, 8,15, 8,
MS_NONEL40,
"対局記録",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* messageId_title[1] */
static MMIPACKET d003 = { &messageId_title[1],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d003d = { MS_LEFTL40 | MS_DSPONLYL40,
93, 116, 148, 137, 8,15, 8,
MS_NONEL40,
"対局者",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* messageId_title[2] */
static MMIPACKET d004 = { &messageId_title[2],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d004d = { MS_CENTERL40 | MS_DSPONLYL40,
159, 118, 186, 137, 8,15, 8,
MS_NONEL40,
"黒",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* messageId_title[3] */
static MMIPACKET d005 = { &messageId_title[3],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d005d = { MS_CENTERL40 | MS_DSPONLYL40,
159, 142, 186, 161, 8,15, 8,
MS_NONEL40,
"白",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* messageId_title[4] */
static MMIPACKET d006 = { &messageId_title[4],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d006d = { MS_LEFTL40 | MS_DSPONLYL40,
88, 173, 155, 192, 8,15, 8,
MS_NONEL40,
"対局日時",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* messageId_title[5] */
static MMIPACKET d007 = { &messageId_title[5],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d007d = { MS_LEFTL40 | MS_DSPONLYL40,
159, 175, 193, 193, 8,15, 8,
MS_NONEL40,
"開始",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* messageId_title[6] */
static MMIPACKET d008 = { &messageId_title[6],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d008d = { MS_LEFTL40 | MS_DSPONLYL40,
158, 206, 192, 224, 8,15, 8,
MS_NONEL40,
"終了",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* messageId_title[7] */
static MMIPACKET d009 = { &messageId_title[7],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d009d = { MS_LEFTL40 | MS_DSPONLYL40,
90, 273, 199, 292, 8,15, 8,
MS_NONEL40,
"手合い コミ",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* messageId_title[8] */
static MMIPACKET d010 = { &messageId_title[8],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d010d = { MS_LEFTL40 | MS_DSPONLYL40,
90, 328, 199, 350, 8,15, 8,
MS_NONEL40,
"結果",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* blacknameId */
static MMIPACKET d011 = { &blacknameId,
&dialogId_title,
&MJ_TEXTL40,
OFFSET(TEXTL40),
MS_NONE
} ;
static TEXTL40 d011d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40,
202, 116, 369, 131, 8,15, 8,
MS_FRAMEL40,
0,
0, 0, 0, 0,
0, 0, 0, 0, 0,
-1, 0, 0,
0, 0, 0, 0,
0,
0, 0, 0, 0,
1, 12, 12, 0, 0,
0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0,
24
} ;
/* whitenameId */
static MMIPACKET d012 = { &whitenameId,
&dialogId_title,
&MJ_TEXTL40,
OFFSET(TEXTL40),
MS_NONE
} ;
static TEXTL40 d012d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40,
202, 144, 369, 159, 8,15, 8,
MS_FRAMEL40,
0,
0, 0, 0, 0,
0, 0, 0, 0, 0,
-1, 0, 0,
0, 0, 0, 0,
0,
0, 0, 0, 0,
1, 12, 12, 0, 0,
0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0,
24
} ;
/* messageId_title[9] */
static MMIPACKET d013 = { &messageId_title[9],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d013d = { MS_LEFTL40 | MS_DSPONLYL40,
283, 175, 298, 194, 8,15, 8,
MS_NONEL40,
"年",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* numboxId[0] */
static MMIPACKET d014 = { &numboxId[0],
&dialogId_title,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d014d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
203, 175, 272, 192, 8,15, 8,
MS_PANELL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0,9999, 1, 0,
263, 264
} ;
/* numboxId[1] */
static MMIPACKET d015 = { &numboxId[1],
&dialogId_title,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d015d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
304, 177, 349, 194, 8,15, 8,
MS_PANELL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 1, 12, 1, 0,
263, 264
} ;
/* messageId_title[10] */
static MMIPACKET d016 = { &messageId_title[10],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d016d = { MS_LEFTL40 | MS_DSPONLYL40,
358, 177, 373, 196, 8,15, 8,
MS_NONEL40,
"月",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* numboxId[2] */
static MMIPACKET d017 = { &numboxId[2],
&dialogId_title,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d017d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
379, 178, 424, 195, 8,15, 8,
MS_PANELL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 1, 31, 1, 0,
263, 264
} ;
/* messageId_title[11] */
static MMIPACKET d018 = { &messageId_title[11],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d018d = { MS_LEFTL40 | MS_DSPONLYL40,
432, 177, 447, 196, 8,15, 8,
MS_NONEL40,
"日",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* numboxId[3] */
static MMIPACKET d019 = { &numboxId[3],
&dialogId_title,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d019d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
449, 179, 494, 196, 8,15, 8,
MS_PANELL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 23, 1, 0,
263, 264
} ;
/* messageId_title[12] */
static MMIPACKET d020 = { &messageId_title[12],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d020d = { MS_LEFTL40 | MS_DSPONLYL40,
501, 179, 516, 198, 8,15, 8,
MS_NONEL40,
"時",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* numboxId[4] */
static MMIPACKET d021 = { &numboxId[4],
&dialogId_title,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d021d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
515, 178, 559, 195, 8,15, 8,
MS_PANELL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 59, 1, 0,
263, 264
} ;
/* messageId_title[13] */
static MMIPACKET d022 = { &messageId_title[13],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d022d = { MS_LEFTL40 | MS_DSPONLYL40,
564, 175, 579, 194, 8,15, 8,
MS_NONEL40,
"分",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* numboxId[5] */
static MMIPACKET d023 = { &numboxId[5],
&dialogId_title,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d023d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
203, 206, 273, 225, 8,15, 8,
MS_PANELL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0,9999, 1, 0,
263, 264
} ;
/* messageId_title[14] */
static MMIPACKET d024 = { &messageId_title[14],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d024d = { MS_LEFTL40 | MS_DSPONLYL40,
281, 206, 296, 225, 8,15, 8,
MS_NONEL40,
"年",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* numboxId[6] */
static MMIPACKET d025 = { &numboxId[6],
&dialogId_title,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d025d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
304, 209, 349, 226, 8,15, 8,
MS_PANELL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 1, 12, 1, 0,
263, 264
} ;
/* messageId_title[15] */
static MMIPACKET d026 = { &messageId_title[15],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d026d = { MS_LEFTL40 | MS_DSPONLYL40,
358, 208, 369, 227, 8,15, 8,
MS_NONEL40,
"月",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* numboxId[7] */
static MMIPACKET d027 = { &numboxId[7],
&dialogId_title,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d027d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
379, 210, 424, 227, 8,15, 8,
MS_PANELL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 1, 31, 1, 0,
263, 264
} ;
/* messageId_title[16] */
static MMIPACKET d028 = { &messageId_title[16],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d028d = { MS_LEFTL40 | MS_DSPONLYL40,
431, 206, 446, 225, 8,15, 8,
MS_NONEL40,
"日",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* numboxId[8] */
static MMIPACKET d029 = { &numboxId[8],
&dialogId_title,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d029d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
449, 211, 494, 228, 8,15, 8,
MS_PANELL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 23, 1, 0,
263, 264
} ;
/* messageId_title[17] */
static MMIPACKET d030 = { &messageId_title[17],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d030d = { MS_LEFTL40 | MS_DSPONLYL40,
500, 208, 515, 227, 8,15, 8,
MS_NONEL40,
"時",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* numboxId[9] */
static MMIPACKET d031 = { &numboxId[9],
&dialogId_title,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d031d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
515, 211, 559, 228, 8,15, 8,
MS_PANELL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 59, 1, 0,
263, 264
} ;
/* messageId_title[18] */
static MMIPACKET d032 = { &messageId_title[18],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d032d = { MS_LEFTL40 | MS_DSPONLYL40,
564, 208, 579, 227, 8,15, 8,
MS_NONEL40,
"分",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* placeId */
static MMIPACKET d033 = { &placeId,
&dialogId_title,
&MJ_TEXTL40,
OFFSET(TEXTL40),
MS_NONE
} ;
static TEXTL40 d033d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_HORIL40,
204, 242, 371, 257, 8,15, 8,
MS_FRAMEL40,
0,
0, 0, 0, 0,
0, 0, 0, 0, 0,
-1, 0, 0,
0, 0, 0, 0,
0,
0, 0, 0, 0,
1, 12, 12, 0, 0,
0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0,
24
} ;
/* dbId[0] */
static MMIPACKET d034 = { &dbId[0],
&dialogId_title,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d034d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
390, 360, 469, 385, 4,15, 8,
MS_PANELL40 | MS_FRAMEL40,
igo_titleset,
0x0000
} ;
/* dbId[1] */
static MMIPACKET d035 = { &dbId[1],
&dialogId_title,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
MS_NONE
} ;
static DBUTTONL40 d035d = { MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
494, 360, 573, 385,10,15, 8,
MS_PANELL40 | MS_FRAMEL40,
igo_titlecancel,
0x0000
} ;
/* messageId_title[19] */
static MMIPACKET d036 = { &messageId_title[19],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d036d = { MS_CENTERL40 | MS_DSPONLYL40,
391, 361, 469, 383, 8,15, 8,
MS_NONEL40,
"設定",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* messageId_title[20] */
static MMIPACKET d037 = { &messageId_title[20],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d037d = { MS_CENTERL40 | MS_DSPONLYL40,
494, 360, 572, 382, 8,15, 8,
MS_NONEL40,
"取消",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* messageId_title[21] */
static MMIPACKET d038 = { &messageId_title[21],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d038d = { MS_LEFTL40 | MS_DSPONLYL40,
89, 240, 198, 262, 8,15, 8,
MS_NONEL40,
"対局場所",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* listMenuId[0] */
static MMIPACKET d039 = { &listMenuId[0],
&dialogId_title,
&MJ_LMENUL40,
OFFSET(LMENUL40),
MS_NONE
} ;
static LMENUL40 d039d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
204, 273, 283, 318, 8,15, 8,
MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0,0,0,0,0,0
} ;
/* listMenuId[1] */
static MMIPACKET d040 = { &listMenuId[1],
&dialogId_title,
&MJ_LMENUL40,
OFFSET(LMENUL40),
MS_NONE
} ;
static LMENUL40 d040d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
430, 275, 480, 313, 8,15, 8,
MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0,0,0,0,0,0
} ;
/* listMenuId[2] */
static MMIPACKET d041 = { &listMenuId[2],
&dialogId_title,
&MJ_LMENUL40,
OFFSET(LMENUL40),
MS_NONE
} ;
static LMENUL40 d041d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
206, 329, 276, 375, 8,15, 8,
MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0,0,0,0,0,0
} ;
/* numboxId[11] */
static MMIPACKET d042 = { &numboxId[11],
&dialogId_title,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d042d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
305, 325, 400, 348, 8,15, 8,
MS_PANELL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 255, 1, 0,
263, 264
} ;
/* numboxId[10] */
static MMIPACKET d043 = { &numboxId[10],
&dialogId_title,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
MS_NONE
} ;
static NUMBOXL40 d043d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
304, 274, 399, 297, 8,15, 8,
MS_PANELL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 255, 1, 0,
263, 264
} ;
/* messageId_title[22] */
static MMIPACKET d044 = { &messageId_title[22],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d044d = { MS_LEFTL40 | MS_DSPONLYL40,
404, 275, 424, 299, 8,15, 8,
MS_NONEL40,
"目",
1, 12, 12,
MS_NONEL40,
5, 0
} ;
/* messageId_title[23] */
static MMIPACKET d045 = { &messageId_title[23],
&dialogId_title,
&MJ_MSGL40,
OFFSET(MSGL40),
MS_NONE
} ;
static MSGL40 d045d = { MS_LEFTL40 | MS_DSPONLYL40,
405, 323, 425, 347, 8,15, 8,
MS_NONEL40,
"目",
1, 12, 12,
MS_NONEL40,
5, 0
} ;